/**
 * 
 */
package pt.inescid.components.console.commands;

import pt.inescid.components.console.Console;

/**
 * @author Sergio Esteves (sesteves at gsd.inesc-id.pt)
 *
 */
public class ShowRatioCommand extends Command {

	public static final String CMD_NAME = "show_ratio";

	public ShowRatioCommand(Console console) {
		super(console);
	}
	
	@Override
	public void execute(String[] args) throws CommandException {
		console.writeln("Node's ratio: " + gridP2P.getRatio());
	}

	@Override
	public String getCmdName() {
		return CMD_NAME;
	}

	public String synopsis() {	
		return CMD_NAME + SYNTAX_SEPARATOR + "Shows the ratio of this node";
	}
}
